﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutoFlatnessTest.Db
{
    public class PageDb
    {
        public int PageIndex { get; set; }
        public int PageSize { get; set; }

        public string GetPageSql()
        {
            return $"LIMIT ({(PageIndex - 1) * PageSize}),{PageSize}";
        }
    }
}
